#ifndef CONNECT_MSG_H_
#define CONNECT_MSG_H_

enum ClientMsg
{
    LOGIN = 0,
    REGISTER = 1,
};

enum QueryResult
{
    SUCCESS = 0,
    FAILURE = 1,
    USERNAME_EMPTY = 2,
    PASSWORD_EMPTY = 3,
    QUERY_FAILED = 4,
    USERNAME_EXIST = 5,
    USERNAME_NOT_EXIST = 6,
    PASSWORD_ERROR = 7,
	LOGIN_FAILED = 8, // 用户名不存在或者密码为空
};

#endif
